package com.itheima.service.impl;

import com.itheima.service.UserService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author 薛虎
 * @date 2021/1/14 10:53
 * 2.实现远程接口,并且继承:UnlcastRemoteObject
 */
public class UserServiceImpl extends UnicastRemoteObject implements UserService {


    public UserServiceImpl() throws RemoteException {

    }

    @Override
    public String sayHello(String name) throws RemoteException {


        return name + "成功调用了服务端的服务";
    }
}
